<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="csoei.bbs.Dao.UserDao"%><%@ page import="java.sql.ResultSet"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; UTF-8">
<link rel="stylesheet" href="css/frame.css" type="text/css" />
<title></title>
</head>
<body>
<% String uid=request.getParameter("uid");String back=request.getHeader("Referer");if(back==null){back="bbs.jsp";}String outstr;
ResultSet userinfo=UserDao.getUserInfo(uid);userinfo.next();String gender="未知";if(userinfo.getInt(3)==1){gender="男";}else{if(userinfo.getInt(3)==2){gender="女";}else{gender="未知";}};
outstr="<a href=\""+back+"\">返回上一页</a><br />用户信息如下<div class=\"userinfo\"><div class=\"username\">登录用户名："+userinfo.getString(1)+"</div><div class=\"name_display\">显示用户名："+userinfo.getString(2)+"</div><div class=\"gender\">性别："+gender+"</div><div class=\"email\">电子邮件地址："+userinfo.getString(4)+"</div><div class=\"reg_time\">注册时间："+userinfo.getString(5)+"</div><div class=\"address\">地址："+userinfo.getString(6)+"</div><div class=\"birthday\">生日："+userinfo.getString(7)+"</div><div class=\"site\" target=\"_blank\">个人网站：<a href=\""+userinfo.getString(8)+"\">"+userinfo.getString(8)+"</a></div><div class=\"sign\">个人签名："+userinfo.getString(9)+"</div></div>";
out.println(outstr);

%>
</body>
</html>